
$.extend({
    delete:function({url,success}){
        $.ajax({
            url: url,
            type: 'DELETE',
            success:function(res){
                success(res);
            }
        });    
    },
    put:function({url,success}){
        $.ajax({
            url: url,
            type: 'PUT',
            success: function( res ) {
                success(res);
            }
        });
    }
})